import Mock from "mockjs";
const Random = Mock.Random;

Mock.mock("/list", "get", (config) => {
  console.log("config", config);

  return {
    code: "200",
    msg: "success",
    data: {
      total: Random.natural(6, 31),
      "list|1-10": [
        {
          id: Random.id(),
          titile: Mock.mock("@string"),
        },
      ],
    },
  };
});
